import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./plugins/element.js";
import 'element-ui/lib/theme-chalk/index.css';
import "../lib/css/init.css";
// 引入icon
import './assets/icon/iconfont.css';
import './assets/user-icon/iconfont.css';
// 引入echarts
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false;

// 过滤器
import * as custom from './util/filter'

Vue.prototype.$comm = custom

Object.keys(custom).forEach(key => {
  Vue.filter(key, custom[key])
})

new Vue({
  router,
  data: {
    Bus: new Vue()
  },
  store,
  render: h => h(App)
}).$mount("#app");
